package com.basic.modules.ykf.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.basic.common.annotation.DictParam;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 话术管理
 *
 * @author maoheng
 * @email 15738859597@163.com
 * @date 2024-05-13 18:21:12
 */
@Data
@TableName("ykf_script_manage")
public class YkfScriptManageEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	private Long scriptManageId;
	/**
	 * 标题
	 */
	@NotBlank(message = "请输入标题")
	private String title;
	/**
	 * 内容
	 */
	@NotBlank(message = "请输入内容")
	private String content;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 创建者ID
	 */
	@TableField(fill = FieldFill.INSERT)
	private Long createUserId;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 * 创建人名称
	 */
	@DictParam(field = "createUserId", targetField = "createUserName", dictType = "flowerName")
	@TableField(fill = FieldFill.INSERT)
	private String createUserName;

	/**
	 * keyword
	 */
	@TableField(exist = false)
	private String keyword;

}
